package com.dyava.dycache.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "dycache.engine")
public class DyCacheEngineProperties {
    boolean enable=true;
    String l1Name="一级缓存";
    String l2Name="二级缓存";
    SimpleRedisClientProperties simpleRedisClient = new SimpleRedisClientProperties();

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getL1Name() {
        return l1Name;
    }

    public void setL1Name(String l1Name) {
        this.l1Name = l1Name;
    }

    public String getL2Name() {
        return l2Name;
    }

    public void setL2Name(String l2Name) {
        this.l2Name = l2Name;
    }


    public SimpleRedisClientProperties getSimpleRedisClient() {
        return simpleRedisClient;
    }

    public void setSimpleRedisClient(SimpleRedisClientProperties simpleRedisClient) {
        this.simpleRedisClient = simpleRedisClient;
    }
}
